﻿#include "scanrule.h"

ScanRule::ScanRule(QObject *parent) : QBaseEntity(parent)
{
    clear();
    const QMetaObject *metaObject = this->metaObject();
    setTableName(QString(metaObject->className()).toLower());
    setPrimaryKey("id");
}

ScanRule::~ScanRule()
{

}

uint64_t ScanRule::getId() const
{
    return id;
}

void ScanRule::setId(const uint64_t &value)
{
    id = value;
}

QString ScanRule::getFilterContent() const
{
    return filterContent;
}

void ScanRule::setFilterContent(const QString &value)
{
    filterContent = value;
}

bool ScanRule::getByFileName() const
{
    return byFileName;
}

void ScanRule::setByFileName(bool value)
{
    byFileName = value;
}

bool ScanRule::getByFileContent() const
{
    return byFileContent;
}

void ScanRule::setByFileContent(bool value)
{
    byFileContent = value;
}

QString ScanRule::getMoveDir() const
{
    return moveDir;
}

void ScanRule::setMoveDir(const QString &value)
{
    moveDir = value;
}
